package com.sunmnet.j2ee.entity.powerdb.designer;

import com.sunmnet.j2ee.entity.base.BaseAutoEntity;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Table(name = "pdm_module")
@DynamicInsert(true)
@DynamicUpdate(true)
public class PdmModule extends BaseAutoEntity implements java.io.Serializable {

    private static final long serialVersionUID = -4857680511023700252L;
    private String name;
    private String  remark;
    private Long projectId;
    private Long accountId;
    private Long createAccountId;
    private Long modifyAccountId;
    private Long dbInfoId;
    private Long databaseId;
    private Long parentId;
    private String pathUrl;
    private short shorIndex;
    private Long versionId;

    /**
     * get dbInfoId
     *
     * @return java.lang.Long
     */
    @Column(name = "db_info_id")
    public Long getDbInfoId() {
        return dbInfoId;
    }

    /**
     * set dbInfoId
     */
    public void setDbInfoId(Long dbInfoId) {
        this.dbInfoId = dbInfoId;
    }

    @Column(name = "version_id")
    public Long getVersionId() {
        return versionId;
    }

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Column(name = "project_id")
    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }
    @Column(name = "account_id")
    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }
    @Column(name = "modify_account_id")
    public Long getModifyAccountId() {
        return modifyAccountId;
    }

    public void setModifyAccountId(Long modifyAccountId) {
        this.modifyAccountId = modifyAccountId;
    }
    @Column(name = "create_account_id")
    public Long getCreateAccountId() {
        return createAccountId;
    }

    public void setCreateAccountId(Long createAccountId) {
        this.createAccountId = createAccountId;
    }

    @Column(name = "database_id")
    public Long getDatabaseId() {
        return databaseId;
    }

    public void setDatabaseId(Long databaseId) {
        this.databaseId = databaseId;
    }
    @Column(name = "parent_id")
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    @Column(name = "path_url")
    public String getPathUrl() {
        return pathUrl;
    }

    public void setPathUrl(String pathUrl) {
        this.pathUrl = pathUrl;
    }

    @Column(name = "shor_index")
    public short getShorIndex() {
        return shorIndex;
    }

    public void setShorIndex(short shorIndex) {
        this.shorIndex = shorIndex;
    }

    public String toString() {
        return new ReflectionToStringBuilder(
                this,
                ToStringStyle.MULTI_LINE_STYLE)
                .toString();
    }
}

